package com.wsfk.ssm.service.client;

import java.util.List;

import com.wsfk.ssm.entity.BookInfo;
import com.wsfk.ssm.entity.HandBook;
import com.wsfk.ssm.entity.User;
import com.wsfk.ssm.messages.HandBookMessage;
import com.wsfk.ssm.messages.LoginMessage;
import com.wsfk.ssm.messages.Message;
import com.wsfk.ssm.messages.RegistMessage;
import com.wsfk.ssm.messages.UpdateMessage;

/**
 * 
 * @author zhangbao
 *	客户端SVC
 */
public interface ClientSvc {

	public HandBookMessage queryBooksByDownNum(String downnum);
	
	public RegistMessage addUser(User user);
	
	public LoginMessage queryUserByUserNameAndPwd(String userName,String pwd);
	
	public boolean isHasUserName(String userName);
	
	public List<BookInfo> queryBookInfos(String userName,String pwd);
	
	public UpdateMessage queryBookInfo(String userName,String pwd,String version,String downnum);
	
	public UpdateMessage updatePublishState(String userName,String pwd,String downnum,String publishState);
	
	public Message updatePwd(String userName, String pwd, String newPwd);
	
	public int addBook(String userid) ;

	public int updateEndTime(String bookid);

}
